<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var book = new Array();
        var x;
        book[0] = "《JavaScript前端开发案例教程》";
        book[1] = "《Node.js核心基础教程》";
        book[2] = "《HTML5移动Web开发》";
        for (x in book) {
            document.write(book[x] + "<br>");
        }
    </script>
</body>

</html>